SERVICE_STATUS (Structures)
Last changed: -80.11.84.239

.
Summary
The SERVICE_STATUS structure contains information about a service. The ControlService, EnumDependentServices, EnumServicesStatus, and QueryServiceStatus functions use this structure to return information about a service. A service uses this structure in the SetServiceStatus function to report its current status to the service control manager.

C# Definition:

[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SERVICE_STATUS
{
     public static readonly int SizeOf = Marshal.SizeOf(typeof(SERVICE_STATUS));
     public SERVICE_TYPES dwServiceType;
     public SERVICE_STATE dwCurrentState;  
     public uint dwControlsAccepted;  
     public uint dwWin32ExitCode;  
     public uint dwServiceSpecificExitCode;  
     public uint dwCheckPoint;  
     public uint dwWaitHint;
}

VB Definition:

Structure SERVICE_STATUS
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

see EnumServicesStatus and EnumDependentServices.

Documentation